<{include file="header.html"}>
<link href="themes/css/detection.css" rel="stylesheet" type="text/css" media="screen">
<script language="javascript" type="text/javascript" src="themes/js/date/WdatePicker.js"></script>
<script language="javascript" type="text/javascript" src="themes/js/SetTableBgColor.js"></script>
<div id ="d_sidebar">
	<div class="d_title">
		<h2><a href ="#">告警管理</a></h2>
	</div>
	<div class = "d_title">
		<span>告警通知</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href ="<{spUrl c=Alarms a=alarm_history}>"><span>告警通知历史</span></a><br>
		&nbsp;&nbsp;&nbsp;<a href = "<{spUrl c=Alarms a=statistics}>"><span>告警通知统计</span></a><br>
	<div class = "d_title">
		<span>故障管理</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href ="<{spUrl c=main a=alarm}>"><span>故障历史</span></a><br>
	<div class = "d_title">
		<span>告警通知设置</span><br>
	</div>
		&nbsp;&nbsp;&nbsp;<a href = "<{spUrl c=main a=edit}>"><span>站点监控</span></a><br>
	<div class = "d_title">
		<span>按域名查看</span><br>
	</div>
		<table align="left">
		<{foreach item=vo from=$list key=enname}>
		<tr><td>
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href ="<{spUrl c=main a=alarm siteid=$vo.siteid}>"><span><{$vo.domain}></span></a><br>
		</td></tr>
		<{/foreach}>
		</table>
<!--	<div class = "d_title">-->
<!--		<span>自定义告警</span><br>-->
<!--	</div>-->
<!--		&nbsp;&nbsp;&nbsp;<a href = "#"><span>自定义告警线状态</span></a>-->
</div>
<!--###########-----------------------------------------------------------###########-->
<div id = "d_container">

<form action="<{spUrl c=Alarms a=limit_alarm}>" method="post">
	<span>时间范围选择</span>
	<input name="btime" type="text" onClick="WdatePicker()" />--<input name="atime" type="text" onClick="WdatePicker()" />
	<input type="submit" value="提交" />
</form>
	<table width="900" border="0" align="center" id="table1">
			<tr style="height:30px;">
					<td width="200">名称：</td>
					<td width="200">网址：</td>
					<td width="200">消息：</td>
					<td width="200">时间：</td>	
			</tr>
	<{foreach item=vo from=$result key=enname}>
			<tr style="height:20px;">
					<td width="200" ><{$vo.site.title}></td>
					<td width="200" ><{$vo.site.domain}></td>
					<td width="200" ><{$vo.news}></td>
					<td width="200" ><{$vo.addtime|date_format:'%Y-%m-%d %H:%M:%S'}></td>
			</tr>
	<{/foreach}>				
	</table>
 		

<{if $pager}>
共有记录<{$pager.total_count}>条，共有<{$pager.total_page}>页（每页<{$pager.page_size}>条记录）：
<!--在当前页不是第一页的时候，显示前页和上一页-->
<{if $pager.current_page != $pager.first_page}>
<a href="<{spUrl c=main a=alarm page=$pager.first_page}>">前页</a> | 
<a href="<{spUrl c=main a=alarm page=$pager.prev_page}>">上一页</a> | 
<{/if}>
<!--开始循环页码，同时如果循环到当前页则不显示链接-->
<{foreach from=$pager.all_pages item=thepage}>
	<{if $thepage != $pager.current_page}>
		<a href="<{spUrl c=main a=index page=$thepage}>"><{$thepage}></a>
	<{else}>
		<b><{$thepage}></b>
	<{/if}>
<{/foreach}>
<!--在当前页不是最后一页的时候，显示下一页和后页-->
<{if $pager.current_page != $pager.last_page}> | 
<a href="<{spUrl c=main a=alarm page=$pager.next_page}>">下一页</a> | 
<a href="<{spUrl c=main a=alarm page=$pager.last_page}>">后页</a>
<{/if}>
<{/if}>

</div>
<div class = "clear"></div>
<script>
$(function(){ 

	//自定义类，给定值； 
	$("#table1").SetTableBgColor({ 
	odd:"odd1", 
	even:"even1", 
	selected:"mselected" 
	}).find("th").css("font-size","18"); 
	}) 

</script>
<{include file="footer.html"}>